package com.jgame.secondarymarket.domain.product.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jgame.secondarymarket.domain.product.entity.Specification;
import com.jgame.secondarymarket.interfaces.query.page.product.PageSpecificationQuery;
import com.jgame.secondarymarket.interfaces.vo.product.SpecificationVO;

import java.util.List;

public interface SpecificationService {

    void delById(Long productId, List<Long> specificationId);

    void add(Long productId, List<Specification> specifications);

    void update(Long productId, Long specificationId, Specification specification);

    SpecificationVO getOneById(Long productId, String properties);

    IPage<SpecificationVO> getPage(PageSpecificationQuery query);
}
